package org.example.controller;

import cn.lingyangwl.framework.core.response.Resp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shenguangyang
 */
@RestController
public class TestController {
    private static final Logger log = LoggerFactory.getLogger(TestController.class);
    @GetMapping("/t1")
    public Resp<String> t1(@RequestParam("data") String data) {
        log.error("这是一个error日志, data: {}", data);
        log.info("这是一个info日志, data: {}", data);
        log.warn("这是一个warn日志, data: {}", data);
        return Resp.ok("成功啦");
    }
}
